<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <link rel="stylesheet" href="__STATIC__/mobile/css/common.css" />
    <link rel="stylesheet" href="__STATIC__/mobile/css/contact.css" />
    <title>联系我们</title>
</head>

<body>
    <div class="contact">
        <!--map-->
        <div class="map" id="map"></div>
        <!--联系方式-->
        <div class="contact_type">
            <ul>
                {php}$list = json_decode(setting('list'),true);{/php}
                {foreach $list as $k=>$l}
                <li>
                    <img src="{$l.thumb ?: ''}" alt="" />
                    <span>{$l.name ?: ''}:</span>
                    {if $k==1}
                    <a href="tel:{$l.value ?: ''}">{$l.value ?: ''}</a>
                    {else}
                    <p>{$l.value ?: ''}</p>
                    {/if}
                </li>
                {/foreach}

            </ul>
        </div>
        <!--footer-->
        <footer id="footer">
            <ul class="code">
                {if setting('ewm_d','status')==1}
                <li>
                    <img src="{:setting('ewm_d')}" />
                    <p>订阅号</p>
                </li>
                {/if}

                {if setting('ewm_f','status')==1}
                <li>
                    <img src="{:setting('ewm_f')}" />
                    <p>服务号</p>
                </li>
                {/if}
            </ul>
            <ul class="footer_link">
                <li>
                    <a href="{:url('/item/1')}">
                            关于我们
                        </a>
                </li>
                <li>
                    <a href="javascript:;">
                            联系我们
                        </a>
                </li>
                <li>
                    <a href="javascript:;">
                            在线咨询
                        </a>
                </li>
                <li>
                    <a href="{:url('/item/15')}">
                            加盟合作
                        </a>
                </li>
            </ul>
            <!--商标-->
            <div class="legal">
                <p>{:setting('beian')}</p>
                <p>{:setting('banquan')}</p>
            </div>
        </footer>
    </div>

    <script src="__STATIC__/mobile/js/rem.js"></script>
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=GoIwFSXHlIwArdeGq8ii4Fi4BPXeT7Pu"></script>
    <script>
        // 百度地图API功能
        var map = new BMap.Map("map");
        var point = new BMap.Point('{:setting("lng")}', '{:setting("lat")}');
        map.centerAndZoom(point, 15);
        // 创建点
        var marker = new BMap.Marker(new BMap.Point('{:setting("lng")}', '{:setting("lat")}'));
        //增加点
        map.addOverlay(marker);
    </script>
</body>

</html>